<?php
/**
 * Copyright (c) 2017. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
 * Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
 * Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
 * Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
 * Vestibulum commodo. Ut rhoncus gravida arcu.
 */

return array(
    //网易短信相关配置
    'NETEASE_API_URL'  =>'https://api.netease.im/sms/sendtemplate.action',
    'NETEASE_API_URL_CODE'  =>'https://api.netease.im/sms/sendcode.action',
    'AppSecret'  =>'f44ab76d1dbd',
    'AppKey'  =>'d4bc9e836ed6761a1ec2d856b77be6f9',
    //默认页大小配置
    "page_size" =>10,
    'best_number' => 3,
    'new_number' => 3,
    'hot_number' => 3,
    'promote_number' => 3,
    'rest_goods_number'=>0,   //剩余商品库存数，如果小于等于则商品不再售卖。接口实际库存返回0给前端

    //支付宝相关配置
    'ali_pay_account'=>'364898568@qq.com',
    'ali_pay_parent'=>'2088821592451070',
    'ali_pay_new_key'=>'lvgsxxxcgjpuqayhch6wfm4dojd6w75t',
    'ali_pay_appid'=>'2017110209679405',


    //腾讯地图API 相关配置
    'TENCENT_URL' => 'http://apis.map.qq.com/ws/place/v1/suggestion/?region=广州&keyword=',   //地址输入提示
    'TENCENT_KEY' => 'RFDBZ-BJL3F-463JB-J5VHW-Z2QDV-GQFV6',
    'DEFAULT_WID'=>8,           //根据配送方式选择到店自提时，指定默认仓库ID
    'DEFAULT_PICKEDUP_ADDRESS' =>'天河区黄埔大道西120号高志大厦B1层食得鲜智能生活体验中心',  //自提订单默认取货地址：广东省广州市天河区马场路14号力迅上筑东区 D026
    'DEFAULT_PICKEDUP_LONGITUDE'=>'113.331271', //自提单默认取货地址经度，大
    'DEFAULT_PICKEDUP_LATITUDE'=>'23.132197', //自提单默认取货地址纬度，小
    'DEFAULT_PRESELL_TIME_H'=>'10:00',
    'GOODS_BRIEF_EXTEND'=>'[添加楼管家微信最高返8元] ', //商品详情前添加扩展内容

    'H5_APP_ID' =>'sdxh5appid',             //H5 微信端 app id
    'ANDROID_APP_ID' =>'sdxandroidappid',   //安卓 app id
    'IOS_APP_ID' =>'sdxh5appid',            //ios app id
	'CATE_BUY_LIMIT' => array('129'=>array('is_day'=>1,'num'=>1))	,	//分类购买数量限制
	'RECHARGE_GET_VIP'=>1000,			//充值送会员的最低充值金额
    'DEFAULT_SHOW_INDEX'=>1,       //是否显示首页，默认为0，不显示,1显示

    'PURCHASED_NUMBER'=>2,      //常购清单中商品显示，最低购买次数，低于此数不显示
    'NEW_USER_ORDER_NUMBER'=>0, //判断新用户的最低订单数，大于则不属于新用户

    //用户配置
    'BALANCE_LOWER_LIMIT_NOTICE'=>200,   //用户余额通知下限

    //cdn域名地址
    'CDN_IMG_HOST'=> 'https://image.shidexian.com',
    //阿里云配置
    'ALIYUN_AKID' => 'LTAI2GVCj3z8eNzP',        //阿里云akID
    'ALIYUN_AKSECRET' => '9z8CGENwamLdbjTIIfDIfRQrECClkI',    //阿里云akSecret
	
	//阿里推送配置
    'ALIPUSH_ACCESSKEYID'=>'LTAIg6MAWUXeboWN',
    'ALIPUSH_ACCESSSECRET'=>'cLdgHR9EP8TjGA4XcURo8Mx0nOO7Nw',
    'ALIPUSH_APPKEY'=>23634275,

    //阿里大于短信配置
    'SMS_TYPE'=>2,    //1网易短信平台，2阿里大于短信平台
    'ALIDAYU_APPKEY'=>'23708348',
    'ALIDAYU_SECRETKEY'=>'aa401c47130489a3738cf102a873c3dc',
    'SMSFREESIGNNAME'=>'食得鲜',    //短信签名
    'CALLEDSHOWNUM'=>'02022042260',    //语音通知显示的号码01053912808

    //短信广告语
    'SMS_CONTENT'=>'食得鲜签到送钱活动进行中，每天签到送1元！',

    //订单队列设置
    'ORDER_QUEUE_OPEN'=>1,   //开启订单队列功能
    //地址解析 高德版
    'AMAP_KEY'         =>  '748f07672f46f30790353686853e5461',
    'AMAP_URL'			=>  'http://restapi.amap.com/v3/geocode/geo?',

    //京东支付配置
    'JD_APPID'=>'34c2f698f41c438e31c5a5ebfe32264b',
    'JD_MERCHANT'=>'110132345004',
    'JD_DESKEY'=>'lzRYSjthJuDLAp2tgIWSyxlol+ZMxFdU',
    'JD_MD5KEY'=>'vfbnccSrhCeFibtpcCnupqauGjNoraxl',
    'JD_VERSION'=>'V2.0',

    //极客配送配置
    'gk_chucang_user_id'=>array('8'=>'469','17'=>'682','18'=>'685'),
    'gk_peisong_user_id'=>array('8'=>'470','17'=>'683','18'=>'684'),
    'gk_key'=>'gk121_',
    'gk_source'=>'gk_shipping',
    'partner_no'=>'050505043918',                       //'24011800026';
    'app_key'=>'UCOEFAGL',                              //'EMYMPVCP';
    'app_secret'=>'dRMPvZfUWmEx4vGw3e1noqhbvPlJRCbu',   //'CLjsE7QRvIbrg8iPOKqhllZxQU0rK71N';
    'gk_sender_info'=>array(
        '8'=>array(
            'sender' => '食得鲜高志店',
            'sender_province'=>'6',
            'sender_city'=>'76',
            'sender_district'=>'693',
            'sender_address' => '广州市天河区黄埔大道西120号高志大厦B1层',
            'sender_longitude' => '113.3395900000',
            'sender_latitude' => '23.1261200000',
            'sender_position_source' => 3,
            'sender_telephone' => '02038269887'
        ),
        '17'=>array(
            'sender' => '海珠体验店',
            'sender_province'=>'6',
            'sender_city'=>'76',
            'sender_district'=>'696',
            'sender_address' => '广州市海珠区江南大道南689号盈熙商贸中心1楼',
            'sender_longitude' => '113.2876400000',
            'sender_latitude' => '23.0737500000',
            'sender_position_source' => 3,
            'sender_telephone' => '02038269887'
        ),
        '18'=>array(
            'sender' => '白云体验店',
            'sender_province'=>'6',
            'sender_city'=>'76',
            'sender_district'=>'695',
            'sender_address' => '广州市白云区马务大街3号',
            //经度
            'sender_longitude' => '113.2584700000',
            //纬度
            'sender_latitude' => '23.2063100000',
            'sender_position_source' => 3,
            'sender_telephone' => '02038269887'
        ),
    ),

    //订单默认操作原因
    'order_reason' => array(
        '缺货待新货补充',
        '过期待新货补充',
        '次损待新货补充',
        '订单漏送延时',
        '变质待新货补充',
        '取消购买商品',
        '临期待新货补充',
        '客户手机空号',
        '无法拨通客户手机'
    ),
    //商品默认操作原因
    'goods_reason' => array(
        '缺货无新货补充',
        '过期无新货补充',
        '次损无新货补充',
        '变质无新货补充',
        '临期无新货补充'
    ),
    //新用户红包
    'NEW_USER_BONUS'=>'355,357,359,359',
    'NEW_USER_BONUS_ARRAY' => array(355, 357, 359, 359),
    //道歉红包ID
    'BONUS_APOLOGIZE'=>123,
    //红包分享转发内容
    'BONUS_SHARE_INFO'=>array(
        'title'=>'感情深,分享勤！',
        'content'=>'我刚在食得鲜下了一单，快来领福利，新人可领取99减50通用红包！',
        'friends_content'=>'我刚在食得鲜用红包下了一单，价格超给力，快来领福利！',
        'link'=>'https://w.shidexian.com/?index=/paySuccessSpe'
    ),
    //专题分享获赠红包内容
    'SHARE_PAGE_INFO'=>array(
        'share_title'=>"立得10元",
        'url'=>'https://test.shidexian.com/?index=!/spe?temp=635',
        'utm_source'=>'share_invite_user',  //转发来源
        'bonus_id'=>'147',   //赠送红包id
        'give_type'=>1, //1:新用户完成首单可获取，2，每次完成订单可获取
        'bonus_ad'=>'让钱包不再悲伤，解开封印不！忍！了！',
        'share_active_desc'=>'邀请好友一起来食得鲜，给TA发放110元的新人邀请大礼包。好友完成首单消费后，邀请人和被邀请人分别获得50元红包1个',
        'share_pic_url'=>'https://image.shidexian.com/Public/images1/down-app.png'
    ),
    //订单送达待确认操作原因
    'shipping_reason' => array(
        '送达时收货人不在',
        '收货人指定放置点代收',
        '由收货人指定代收人收件'
    ),

    //百度配送配置
    'bd_chucang_user_id'=>array('348'),
    'bd_peisong_user_id'=>'347',
    'bd_key'=>'gk121_',
    'bd_source'=>'食得鲜',
    'bd_app_key'=>'b2e83fed4b9498d7df6beb8b9c75f0a7',                              //'EMYMPVCP';
    'bd_app_id'=>'1000554',   //'CLjsE7QRvIbrg8iPOKqhllZxQU0rK71N';
    'bd_wl_shop_id'=>'L1707280001',
    'shop_phone'=>'400-8302-108',

    //蜂鸟配送配置
    'eleme_chucang_user_id'=>array('8'=>'529','17'=>'681','18'=>'678'),
    'eleme_peisong_user_id'=>array('8'=>'530','17'=>'680','18'=>'679'),
    'eleme_app_id'=>'2436720f-3727-4ae4-ae1e-638c0494a191',
    'eleme_transport_info' => array(
        '8'=>array(
            'transport_name' => '食得鲜高志店',
            'transport_address' => '广州市天河区黄埔大道西120号高志大厦B1层',
            'transport_longitude' => '113.3395900000',
            'transport_latitude' => '23.1261200000',
            'position_source' => 3,
            'transport_tel' => '02038269887',
            'transport_remark' => ''
        ),
        '17'=>array(
            'transport_name' => '海珠体验店',
            'transport_address' => '广州市海珠区江南大道南689号盈熙商贸中心1楼',
            'transport_longitude' => '113.2876400000',
            'transport_latitude' => '23.0737500000',
            'position_source' => 3,
            'transport_tel' => '02038269887',
            'transport_remark' => ''
        ),
        '18'=>array(
            'transport_name' => '白云体验店',
            'transport_address' => '广州市白云区马务大街3号',
            'transport_longitude' => '113.2584700000',
            'transport_latitude' => '23.2063100000',
            'position_source' => 3,
            'transport_tel' => '02038269887',
            'transport_remark' => ''
        ),
    ),
    'eleme_notify_url'=>'http://apitest.shidexian.com/index.php?s=/Elemeshipping/Elemenotify',
    'eleme_is_need_package'=>0,
    'eleme_is_agent_purchase'=>0,
    'eleme_invoice'=>'广州食得鲜网络科技有限公司',

    //顺丰配送配置
    'sf_chucang_user_id'=>array('8'=>'555','17'=>'713','18'=>'712'),
    'sf_peisong_user_id'=>array('8'=>'556','17'=>'714','18'=>'711'),
    "SF_CONFIG_TEST" => array(
        "AES_SECRET_KEY" => "OOXcvBbNI3k4cAuoVJJ8dZSGdUALWOP+",
        "SHA512_SECRET_KEY" => "FT0+q8LxXbWRW2Swf9pMMrY3sKsQH9NM",
        "PARTNERID" => "SHIDEXIAN",
        "CLIENTCODE" => "SHIDEXIAN",
        'SHOP_INFO'=>array(
            '8'=>array(
                "STORECODE" => "G00203988",
                'STORENAME' =>  '食得鲜（联调）',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'天河区',
                'ADDRESS'=>'黄埔大道西120号高志大厦B1层',
                'CONTACTS'=>'食得鲜',
                'MOBILE'=>'02038269887'
            ),
            '17'=>array(
                "STORECODE" => "G02000355",
                'STORENAME' =>  '食得鲜海珠店',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'海珠区',
                'ADDRESS'=>'江南大道南689号盈熙商贸中心1楼',
                'CONTACTS'=>'食得鲜-海珠店',
                'MOBILE'=>'02038269887'
            ),
            '18'=>array(
                "STORECODE" => "G02000356",
                'STORENAME' =>  '食得鲜白云店',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'白云区',
                'ADDRESS'=>'马务大街3号',
                'CONTACTS'=>'食得鲜-白云店',
                'MOBILE'=>'02038269887'
            )
        ),
        "SERVICE_URL"=>"http://218.17.248.249:6810/services/orderservice/o2o"
    ),
    "SF_CONFIG" => array(
        "AES_SECRET_KEY" => "sJKRGqfpT3zqyNbsqwF8f4oEsBXWugir",
        "SHA512_SECRET_KEY" => "rVHac15RpIn4KUBReQKi/e/CT4ZrboNt",
        "PARTNERID" => "SHIDEXIAN",
        "CLIENTCODE" => "SHIDEXIAN",
        'SHOP_INFO'=>array(
            '8'=>array(
                "STORECODE" => "G02000316",
                'STORENAME' =>  '食得鲜高志店',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'天河区',
                'ADDRESS'=>'黄埔大道西120号高志大厦B1层',
                'CONTACTS'=>'食得鲜',
                'MOBILE'=>'02038269887'
            ),
            '17'=>array(
                "STORECODE" => "G02000355",
                'STORENAME' =>  '食得鲜海珠店',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'海珠区',
                'ADDRESS'=>'江南大道南689号盈熙商贸中心1楼',
                'CONTACTS'=>'食得鲜-海珠店',
                'MOBILE'=>'02038269887'
            ),
            '18'=>array(
                "STORECODE" => "G02000356",
                'STORENAME' =>  '食得鲜白云店',
                'ADDRESSPROVINCE'=>'广东省',
                'ADDRESSCITY'=>'广州市',
                'ADDRESSDISTRICT'=>'白云区',
                'ADDRESS'=>'马务大街3号',
                'CONTACTS'=>'食得鲜-白云店',
                'MOBILE'=>'02038269887'
            )
        ),
        "SERVICE_URL"=>"http://ESG-ISP-GW.sf-express.com/services/o2oinbound"
    ),

    //上鲜送物流点配置
    "BSC_CONFIG"=>array(
        '8'=>array(
            'scc_id'=>2
        ),
        '17'=>array(
            'scc_id'=>3
        ),
        '18'=>array(
            'scc_id'=>4
        ),
    ),
    //上鲜送物流点配置(测试)
//    "BSC_CONFIG"=>array(
//        '8'=>array(
//            'scc_id'=>4
//        ),
//        '18'=>array(
//            'scc_id'=>46
//        ),
//        '19'=>array(
//            'scc_id'=>47
//        ),
//    ),

    //食得鲜物流平台配置正式
    'sdx_chucang_user_id'=>array('8'=>'746','17'=>'743','18'=>'741'),
    'sdx_peisong_user_id'=>array('8'=>'745','17'=>'744','18'=>'742'),
    "SDX_BSC_CONFIG"=>array(
        'APP_KEY'=>'I4S5136P',
        'APP_SECRET'=>'385D5CLhWoOm0Oo6FZrRuI7i8VR3IhFC',
        'CLIENT_STORE_NO'=>'8869060031',
        'SERVER_URL'=>'http://b.shidexian.com/index.php?s=/Open/Order/',
        'WAREHOUSE'=>array(
            '8'=>array(
                'scc_id'=>48
            ),
            '17'=>array(
                'scc_id'=>46
            ),
            '18'=>array(
                'scc_id'=>47
            )
        )
    ),

    //食得鲜物流平台配置测试
//    'sdx_chucang_user_id'=>array('8'=>'396','18'=>'399','19'=>'401'),
//    'sdx_peisong_user_id'=>array('8'=>'397','18'=>'398','19'=>'400'),
//    "SDX_BSC_CONFIG"=>array(
//        'APP_KEY'=>'I4S5136P',
//        'APP_SECRET'=>'385D5CLhWoOm0Oo6FZrRuI7i8VR3IhFC',
//        'CLIENT_STORE_NO'=>'8869060031',
//        'SERVER_URL'=>'http://sdxbsc.test.shidexian.com/index.php?s=/Open/Order/',
//        'WAREHOUSE'=>array(
//            '8'=>array(
//                'scc_id'=>48
//            ),
//            '18'=>array(
//                'scc_id'=>46
//            ),
//            '19'=>array(
//                'scc_id'=>47
//            )
//        )
//    ),

    //前置仓店列表
    "SHOP_INFO"=>array(
        array(
            'wid'=>'8',
            'name'=>'天河体验店',
            'address'=>'广州市天河区黄埔大道西120号高志大厦B1层',
            'longitude' =>'113.339759',
            'latitude' =>'23.125753'
        ),
        array(
            'wid'=>'17',
            'name'=>'海珠体验店',
            'address'=>'广州市海珠区江南大道南689盈熙商贸中心1楼',
            'longitude' =>'113.287479',
            'latitude' =>'23.073851'
        ),
        array(
            'wid'=>'18',
            'name'=>'白云体验店',
            'address'=>'广州市白云区马务大街3号',
            'longitude' =>'113.25831',
            'latitude' =>'23.20622'
        )
    ),
    //购物袋列表
    'buy_bag_list'=>array(
        array('bag_id'=>'1','bag_name'=>'购物袋(大)','type'=>'1','price'=>'0'),
        array('bag_id'=>'2','bag_name'=>'购物袋(中)','type'=>'2','price'=>'0'),
        array('bag_id'=>'3','bag_name'=>'购物袋(大)','type'=>'3','price'=>'0')
    ),
    //金蝶接口地址
    'JD_HOST'=>'http://api.jd.shidexian.com',
    'K3_Wid'=>array(1),
    //库存负卖缺货取消时间
    'negative_to_sell_wid'=>array(
        "17"=>array("time"=>'7:00',"start_service"=>"10:00-16:00"),
    ),


);